package com.hgx.su.common.pure.dto;

import java.io.Serializable;

/**
 * 公共返回
 */
public class PubResponse implements Serializable {

    /**
     * 签名字符串
     */
    private String sign;
    /**
     * 签名类型
     *
     * @mock md5
     */
    private String signType;
    /**
     * 登陆token
     */
    private String token;
    /**
     * 服务版本号（暂时未启用，空）
     *
     * @mock 1.0
     */
    private String version;
    /**
     * 请求返回码（200表示成功;错误码根据相应异常返回对应的错误码）正常状态码 200, 错误码 = module+statusCode
     *
     * @mock 200
     */
    private String code;

    /**
     * module 服务模块编号
     *
     * @mock 1001
     */
    private String module;

    /**
     * 请求返回码（200表示成功;错误码根据相应异常返回对应的错误码）
     *
     * @mock 200
     */
    private String statusCode;


    /**
     * 错误消息
     *
     * @mock 成功
     */
    private String msg;

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    @Override
    public String toString() {
        return "PubResponse{" +
                "sign='" + sign + '\'' +
                ", signType='" + signType + '\'' +
                ", token='" + token + '\'' +
                ", version='" + version + '\'' +
                ", code='" + code + '\'' +
                ", module='" + module + '\'' +
                ", statusCode='" + statusCode + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }


}
